package com.itheima.dao;


import com.github.pagehelper.Page;
import com.itheima.pojo.LoginInfo;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);

    Page findByCondition(String queryString);

    void add(User user);

    void setUserAndRole(Map map);

    User findById(Integer userId);

    Integer[] findRoleIdsByUserId(Integer userId);

    void edit(User user);

    void deleteAssocication(Integer id);

    void deleteById(Integer id);


    String findUserName(Integer id);

    //登录时忘记密码
    void editLoginNewPassword(LoginInfo loginInfo);
}
